
        <div>
                <ul class="pagination pagination-split">
                {{#if(pn!==1)}}
                  <li class="disabled"><a href="?pn=1&s={{search}}">首页</a></li>
                  <li class="disabled"><a href="?pn={{pn-1}}&s={{search}}">上一页</a></li>
                {{else}}
                <li class="disabled"><a href="#">首页</a></li>
                <li class="disabled"><a href="#">上一页</a></li>
                {{/if}}

                {{#each(pageArr)}}
                  <li class="{{this===pn?'active':''}}"><a href="?pn={{this}}&s={{search}}">{{this}}</a></li>
                {{/each}}

                 {{#if(pn!==endPn)}}
                 <li><a href="?pn={{pn+1}}&s={{search}}">下一页</a></li>
                 <li><a href="?pn={{endPn}}&s={{search}}">尾页</a></li>
             {{else}}
                 <li class="disabled"><a href="#">下一页</a></li>
                 <li class="disabled"><a href="#">尾页</a></li>
             {{/if}}
                </ul>
            </div>
       